package com.dayu.finecomm.protocol.pojo;

import java.net.InetSocketAddress;
import java.util.LinkedList;
import java.util.Queue;

import io.netty.channel.ChannelHandlerContext;

/**
 * @ClassName: TStation
 * @Description:TODO 站点
 * @author: 戴卫国
 * @date: 2018年2月23日 下午3:05:55
 * 
 * @Copyright: 2018 dayu Inc. All rights reserved.
 */
public class TStation {

	public String id;

	/**
	 * @Fields driveName : 驱动名称
	 */
	public String driveName;

	/**
	 * @Fields packet : 解析结果包
	 */
	public TPacket packet;

	/**
	 * @Fields historical : 历史指令
	 */
	public Queue<TCommand> historical;

	public ChannelHandlerContext ctx;

	public InetSocketAddress address;

	public boolean udp;

	/**
	 * @Fields stationsInfo : TODO
	 */
	// public Map<String, StationInfo> stationsInfo;

	public Queue<String> historyCommand;

	public TStation(TPacket packet) {

		this.id = packet.id();
		this.packet = packet;

		this.historical = new LinkedList<>();
		// this.stationsInfo = new LinkedHashMap<String, StationInfo>();
		this.historyCommand = new LinkedList<>();
	}
}
